Skip to content

feat: add authId option to DevToolsOptions#217

Closed
JianJroh wants to merge 1 commit intovitejs:mainfrom
JianJroh:feat/devtools-options-auth-id
Closed

feat: add authId option to DevToolsOptions#217
JianJroh wants to merge 1 commit intovitejs:mainfrom
JianJroh:feat/devtools-options-auth-id

Conversation

@JianJroh
Copy link

@JianJroh JianJroh commented Mar 17, 2026

Description

Allow pre-configuring a authId for websocket RPC client

Why need?

I am attempting to connect to the DevTools WebSocket from a third-party server, which requires a specific authId.
So that I can send servers(BFF, Backend) logs to the DevTools.

@JianJroh JianJroh force-pushed the feat/devtools-options-auth-id branch from 516d4d4 to b5314f6 Compare March 17, 2026 08:31
return {
backend: 'websocket',
websocket: port,
...(options.authId ? { authId: options.authId } : {}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we send an auth ID in this connection info, it loses the point of the security check (similar to publishing the password to your computer on a blog).

To support custom auth id, we should have updated the ui with a textbox to allow entering the auth id on the client side, etc.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. I created a new pr(#223) to support custom auth id in settings UI.

@JianJroh JianJroh closed this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants